<?php
/**
  * Mar 6, 2008
  *
  * Coded by: Ropu
  *
  */

?>

<style type="text/css">

td.error {
  color: red;
  font-size:13px;
  text-align:center;
}
body {
   font-family:verdana,arial;
}
table.canvas_table
{
  empty-cells: show;
  border-collapse: collapse;
  border: thin inset rgb(100,100,100);  
  background-color: rgb(255,255,255);
  align:center;
  vertical-align: middle;
  width:100%;
}
input.button
{
  border: thin outset rgb(100,100,100);
  background-color: rgb(220,220,220)
}
h2
{
  text-align:center;
  font-family:verdama;
  font-size:16px;
  overflow:hidden;
}
th
{
  font-family:verdama;
  font-size:14px;overflow:hidden;
}
a:hover {
  text-decoration:underline;
}
a {
  color:#3B5998;
  text-decoration:none;
}
div.table_title {
  text-align:center;
  font-family:verdama;
  font-size:20px;
  overflow:hidden;
  height:25px;
  vertical-align: bottom;
}
div.hackathon_location {
  font-family:verdama;
  font-size:25px;
}


div.hackathon_description {
  font-family:verdama;
  font-size:14px;
  overflow:auto;
  vertical-align: bottom;
  height:200px;
}
div.template_body {
  vertical-align: top;
  width:100%;
}
</style>
<div class="template_body">
  <div class="table_title">
  <?=$lang['hackathons']['hackathon_list'];?>
  </div>
<?php


foreach($hackathons as $h) {
//  $h=new Hackathon();
?>
  <table class="canvas_table" id="app">
     <tr>
       <td>
         <div class="hackathon_location"><a href="javascript:goToUrl('hackathons.php?id=<?=$h->getId();?>');void(0);"> <?=sprintf($lang['hackathons']['see_hackers'], $h->getLocation());?></a>
       </td>
     </tr>  
     <tr>
       <td>
         <?=$lang['hackathons']['date'];?><a href="javascript:goToUrl('hackathons.php?id=<?=$h->getId();?>');void(0);"><?=$h->getDate();?></a>
       </td>
     </tr>
     <tr>
       <td>
          <?=$lang['hackathons']['extra_info'];?>
       </td>
     </tr>
     <tr>
       <td>
         <div class="hackathon_description"><?=nl2br($h->getInfo());?></div>
       </td>
     </tr>
  </table><br />
<?php
}
?>
</div>
